// vln3win.cpp : Defines the entry point for the console application.
//

#include <iostream>
#include <fstream>
#include <cstdio>
#include <string>
#include <stdio.h>
#include "stdafx.h"
#include "libvln.h"

using namespace irontree::libvln;
using namespace std;

int _tmain(int argc, _TCHAR* argv[])
{
	Cvln vln1,vln2,vln3;
/*	
	string str1;
	
	vln2 = 1000000000;
	vln3 = 1;
	vln1 = vln2 + vln3;
	str1 = vln1.toString();
	printf("%s\r\n", str1.c_str() );

	vln2 = 1000000000;
	vln3 = 1000000000;
	vln1 = vln2 + vln3;
	str1 = vln1.toString();
	printf("%s\r\n", str1.c_str() );

	vln2 = 1000000000;
	vln3 = 1000000001;
	vln1 = vln2 + vln3;
	str1 = vln1.toString();
	printf("%s\r\n", str1.c_str() );

	vln2 = 1000000001;
	vln3 = 1000000001;
	vln1 = vln2 + vln3;
	str1 = vln1.toString();
	printf("%s\r\n", str1.c_str() );

	vln2 = 2;
	for(int i = 0; i < 10; ++i)
	{
		vln3 = (i+1)*10;
		vln1 = Cvln::power(vln2, vln3);
		printf("%s\r\n", vln1.toString().c_str() );
	}

	vln2 = 2;
	vln3 = 3;
	vln1 = vln3 - vln2;
	printf("%s\r\n", vln1.toString().c_str() );
	*/

	vln1 = 1;
	vln2 = 2;
	vln3 = 3;
	bool result;

	result = vln1 < vln2;
	result = vln2 < vln1;
	result = vln3 < vln3;
	result = vln1 <= vln2;
	result = vln2 <= vln1;
	result = vln3 <= vln3;
	result = vln1 == vln2;
	result = vln2 == vln1;
	result = vln3 == vln3;
	result = vln1 > vln2;
	result = vln2 > vln1;
	result = vln3 > vln3;
	result = vln1 >= vln2;
	result = vln2 >= vln1;
	result = vln3 >= vln3;

	vln1 = vln3 - vln2;
	vln1 = vln2 - vln3;


	return 0;
}

